
<?php if ($this->pageCount) { ?>
    <div class="paginationControl">
        <!-- Previous page link -->
        <?php if (isset($this->previous)) { ?>
            <a style="cursor: pointer;" onclick="productController.getListProduct('<?php echo $this->url($this->route, array('cat_name' => $this->cat_name, 'cat_id' => $this->cat_id , 'maker_name' => $this->maker_name, 'order_by' => $this->order, 'price_step' => $this->price_step, 'page' => $this->previous)); ?>')">
                &lt; Previous
            </a> |
        <?php } else { ?>
            <span class="disabled">&lt; Previous</span> |
        <?php } ?>

        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page) { ?>
            <?php if ($page != $this->current) { ?>
                <a style="cursor: pointer;" onclick="productController.getListProduct('<?php echo $this->url($this->route, array('cat_name' => $this->cat_name, 'cat_id' => $this->cat_id , 'maker_name' => $this->maker_name, 'order_by' => $this->order, 'price_step' => $this->price_step,'page' => $page)); ?>')">
                    <?php echo $page; ?>
                </a> |
            <?php } else { ?>
                <?php echo $page; ?> |
            <?php } ?>
        <?php } ?>

        <!-- Next page link -->
        <?php if (isset($this->next)) { ?>
            <a style="cursor: pointer;" onclick="productController.getListProduct('<?php echo $this->url($this->route, array('cat_name' => $this->cat_name, 'cat_id' => $this->cat_id, 'maker_name' => $this->maker_name,'order_by' => $this->order, 'price_step' => $this->price_step,'page' => $this->next)); ?>')">
                Next &gt;
            </a>
        <?php } else { ?>
            <span class="disabled">Next &gt;</span>
        <?php } ?>
    </div>
<?php } ?>